#!/bin/bash

:<<eof

find [path] [option] [operation]

find path  

options

-mtime +/-5
-user 
-group -size +/-12M 
-name '*.conf' 
-perm 664
-type f/d/c/b/l/p 
-prune 
-mindepth n
-maxdepth n

operation

-exec command {} \;
-print
eof


# 命令出错会停止执行
set -e
# 打印每条执行的命令
set -x

set +x
